package com.hqyj.hrms.modules.account.dao;

import com.hqyj.hrms.modules.account.entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Options;
import org.apache.ibatis.annotations.Select;


public interface UserMapper extends BaseMapper<User> {

    //登录
    @Select("select user_id,user_name,user_pwd from user where user_name=#{userName} and user_pwd=#{userPwd}")
    User login(User user);

    //根据用户名插叙用户
    @Select("select * from user where user_name = #{userName}")
    User getUserByUserName(String userName);

}
